﻿@model CompanyManagement.Models.ChangePassword

@{
    ViewBag.Title = "Change Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="row">
    <div class="col-md-6">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">Change Password</h3>
            </div>
            <form method="post">
                <div class="box-body">
                    @if (TempData["PasswordChange"] != null)
                    {
                        <div class="alert alert-success alert-dismissable">
                            <i class="fa fa-check"></i>
                            <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                            <b>Success!</b> @TempData["PasswordChange"]

                        </div>
                    }
                    <div style="color: red">
                        <b>@Html.ValidationSummary()</b>
                    </div>
                    <div class="form-group">
                        <label>Old Password</label>
                        @Html.TextBoxFor(model => model.OldPassword, new { @class = "form-control", @placeholder = "Enter Old Password", type = "password" })
                    </div>
                    <div class="form-group">
                        <label>New Password</label>
                        @Html.TextBoxFor(model => model.NewPassword, new { @class = "form-control", @placeholder = "Enter New Password", type = "password" })
                    </div>
                    <div class="form-group">
                        <label>Confirm Password</label>
                        @Html.TextBoxFor(model => model.ConfirmPassword, new { @class = "form-control", @placeholder = "Enter Confirm Password", type = "password" })
                    </div>
                </div>
                <div class="box-footer">
                    <button class="btn btn-primary" type="submit">Submit</button>
                </div>
            </form>
        </div>
    </div>
</div>
